package net.halflite.mzkr.form;

import java.io.Serializable;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import org.seasar.framework.container.annotation.tiger.Component;
import org.seasar.framework.container.annotation.tiger.InstanceType;
import org.seasar.struts.annotation.Arg;
import org.seasar.struts.annotation.Required;

/** ログイン用ActionForm */
@Component(instance = InstanceType.SESSION)
public class LoginForm implements Serializable {

	private static final long serialVersionUID = 1L;

	/** ユーザーID */
	@Required(arg0 = @Arg(key = "ユーザーID", resource = false))
	public String username;

	/** パスワード */
	@Required(arg0 = @Arg(key = "パスワード", resource = false))
	public String password;

	@Override
	public String toString() {
		return ReflectionToStringBuilder.toString(this, ToStringStyle.SHORT_PREFIX_STYLE);
	}
}
